﻿namespace NetworkLibrary
{
    public class BaseRpcCommand
    {
        protected IProcedureCallService Source;
        protected IProcedureCallService Target;
        protected BaseRpcCommand(IProcedureCallService source, IProcedureCallService target)
        {
            Source = source;
            Target = target;
        }
        protected ushort GetTypeId<T>() where T : IMessage
        {
            return 0;
        }
        protected void HandleError(ushort code, IMessage message)
        {

        }
    }
}
